package com.example.familylibrary.service;

import com.example.familylibrary.dto.UserDTO;
import com.example.familylibrary.entity.UserEntity;

import java.util.Optional;

public interface UserService {
    UserDTO register(UserDTO userDTO);
    String login(String username, String password);
    Optional<UserDTO> getUserById(Long id);
    UserDTO updateUser(Long id, UserDTO userDTO);
    void updatePassword(Long id, String newPassword);
}